<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cart List</title>
</head>
<body>
	<h1>Cart List</h1>
	<%
		String books[] = { "C++", "JAVA", "C#", "PHP" };
		List<Integer> cart = (List<Integer>) session.getAttribute("MyCart");
		if (cart != null) {
			out.println("<h1>cart List</h1>");
			for (int b : cart) {
				out.println(books[b] + "<a href=\"delCart.jsp?bookid=" + b
						+ "\">Del</a>" + " <br/>");
			}
		} else {
			out.println("<h1>cart is null</h1>");
		}
	%>
</body>
</html>